<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>order属性应用</title>
		<style type="text/css">
			#box{
				width: 300px;
				height: 200px;
				border: 3px solid red;
				display: flex;	  
			}
			#box div{
				width: 40px;
				height: 40px;
				border: 1px solid blue;
			}
			#box div:nth-of-type(2){
				order: -2;
			}
			#box div:nth-of-type(4){
				order: -1;
			}
			#box div:nth-of-type(5){
				order: 1;
			}
		</style>
	</head>
	<body>
		<div id="box">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
		</div>
	</body>
</html>
